<?php

namespace App\Models\Clbum;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

class Clbum extends Model implements Transformable
{
    use TransformableTrait;

    protected $table='clbum';
    protected $fillable = [
        'name',
        'grade_id',
        'header_teacher_user_id',
        'desc',
        'created_user',
        'updated_user',
    ];

    public function clbumExts(){

        return $this->hasMany('App\Models\Clbum\ClbumExt','clbum_id');
    }
}
